﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Collections;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Syndication;
using System.ServiceModel.Web;
using System.Xml;
using System.Configuration;

namespace Microsoft.SqlCommunity.SQLRSS
{
    /// <summary>
    /// This is a simple command line host for demonstrating the data change syndication feed server application.  Use this 
    /// application to launch the WCF server that will respond to the syndication feed requests for data changes.  Note that you must
    /// configure Change Tracking in order for this service to work.
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {

            Uri address = new Uri("http://localhost/SQLRSS/");
            // See FeedMap.cs for an implementation of this service.
            WebServiceHost svcHost = new WebServiceHost(new RSSData(Properties.Settings.Default.FeedMap), address);

            svcHost.Open();
            Console.WriteLine("Service is running");

            Console.WriteLine("Press <ENTER> to quit...");
            Console.ReadLine();
            svcHost.Close();

        }
    }
}
